-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST/REF: collect tests by method #37573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
pandas/tests/io/test_pickle.py
Outdated
tm.assert_series_equal(unp_series, string_series) | ||
|
||
|
||
def _pickle_roundtrip(obj): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you remove in favor of tm.round_trip_pickle
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i thought about this but held off because they're not quite the same. tm.round_trip_pickle calls pd.to_pickle whereas this calls obj.to_pickle. do we need to care about the difference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are welcome to add direct pickle callas in round_trip_pickle
they are the same
except that read_pickle can read from older versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated + greenish
* TST/REF: collect tests by method * use round_trip_pickle
* TST/REF: collect tests by method * use round_trip_pickle
This is something of an outlier in that it collects iter/iteritems/iterrows/itertuples into a test_iteration file. I think this is a sufficiently clear grouping, akin to test_arithmetic/test_reductions/test_unary, LMK if you disagree.